package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyCatalog;
import cn.wolfcode.trip.base.query.QueryObject;
import java.util.List;

public interface StrategyCatalogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyCatalog record);

    StrategyCatalog selectByPrimaryKey(Long id);

    List<StrategyCatalog> selectAll();

    int updateByPrimaryKey(StrategyCatalog record);

    /**
     * 分页及高查
     * @param qo
     * @return
     */
    List<StrategyCatalog> selectForList(QueryObject qo);

    /**
     * 获取最大排序数
     * @return
     */
    int selectMaxSequence();

    /**
     * 获取某个攻略的分类
     * @param id 攻略的id
     * @return
     */
    List selectByStrategyId(Long id);
}